package com.youxin.busfoundation.common.es.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.foundation.utils.DateUtil;


/**
 * @desc ES-企业详情-法院公告
 * @author Kris.wang
 * @date 2017-12-07
 */
public class AnnouncementBean {
    private String litigant;//上诉方
    private String defendant;//被诉方
    private String type;//公告类型
    @JsonProperty("court_name")    
    private String courtName;//法院名称
    private String time;//公告时间
    public String getLitigant() {
        return litigant==null?"未知":litigant;
    }
    public void setLitigant(String litigant) {
        this.litigant = litigant;
    }
    public String getDefendant() {
        return defendant;
    }
    public void setDefendant(String defendant) {
        this.defendant = defendant;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getCourtName() {
		return courtName;
	}
	public void setCourtName(String courtName) {
		this.courtName = courtName;
	}
	public String getTime() {
        return time==null?"": DateUtil.msecondTimeToString(Long.valueOf(time),"yyyy-MM-dd");
    }
    public void setTime(String time) {
        this.time = time;
    }
}
